<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/static/style/style.css">
<script src="${pageContext.request.contextPath}/static/script/index.js"></script>
<script src="${pageContext.request.contextPath}/static/script/button.js"></script>
<script>
    	var helpMessage = '${helpMessage}';
    	function helpOnClick(){
    		alert(helpMessage);
    	}
    </script>
<title>用户注册</title>
</head>
<body>
	<nav class="aho-top-bar aho-box-shadow-mid">
		<section class="main">
			<span><a href="${pageContext.request.contextPath}">OnlineBookStore</a></span>
		</section>
		<section class="toolbar">
			<a class="toolbar-action" onclick="helpOnClick()"> <span
				class="aho-icon aho-icon-help"></span>
			</a>
		</section>

	</nav>
	<main class="aho-container">
		<form class="login-form aho-box-shadow-sm" action="register"
			method="POST">
			<h2 style="margin-top: 5px;">用户注册</h2>
			<c:if test="${error != null}">
				<div class="aho-error-box">
					<span>${error}</span>
				</div>
			</c:if>
			<div class="aho-input-text">
				<label for="">用户名</label> <input type="text" name="nick">
			</div>
			<div class="aho-input-text">
				<label for="">密码</label> <input type="password" name="password">
			</div>
			<div class="aho-input-text">
				<label for="">收货地址</label> <input type="text" name="address">
			</div>
			<br>
			<button class="bt aho-float-right">
				<div class="wave" style="left: auto;"></div>
				<div class="text">注册</div>
			</button>
			<input type="hidden" name="redirect" value="${redirect}">
		</form>
	</main>
</body>
</html>